package com.sld.concrete.device.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 算法管理对象 rec_dev_message
 * 
 * @author topviewers
 * @date 2022-05-09
 */
public class RecDevMessage
{
    private static final long serialVersionUID = 1L;

    /** amqp messageId */
    private Long msgId;

    /** deviceName */
    @Excel(name = "deviceName")
    private String devId;

    /**  */
    @Excel(name = "")
    private Long pressure;

    /**  */
    @Excel(name = "")
    private Long rotateSpeed;

    /**  */
    @Excel(name = "")
    private Long humidity;

    /**  */
    @Excel(name = "")
    private Long temperature;

    /**  */
    @Excel(name = "")
    private Long state;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date msgTime;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;

    public void setMsgId(Long msgId) 
    {
        this.msgId = msgId;
    }

    public Long getMsgId() 
    {
        return msgId;
    }
    public void setDevId(String devId) 
    {
        this.devId = devId;
    }

    public String getDevId() 
    {
        return devId;
    }
    public void setPressure(Long pressure) 
    {
        this.pressure = pressure;
    }

    public Long getPressure() 
    {
        return pressure;
    }
    public void setRotateSpeed(Long rotateSpeed) 
    {
        this.rotateSpeed = rotateSpeed;
    }

    public Long getRotateSpeed() 
    {
        return rotateSpeed;
    }
    public void setHumidity(Long humidity) 
    {
        this.humidity = humidity;
    }

    public Long getHumidity() 
    {
        return humidity;
    }
    public void setTemperature(Long temperature) 
    {
        this.temperature = temperature;
    }

    public Long getTemperature() 
    {
        return temperature;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setMsgTime(Date msgTime) 
    {
        this.msgTime = msgTime;
    }

    public Date getMsgTime() 
    {
        return msgTime;
    }
    public void setInsertTime(Date insertTime) 
    {
        this.insertTime = insertTime;
    }

    public Date getInsertTime() 
    {
        return insertTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("msgId", getMsgId())
            .append("devId", getDevId())
            .append("pressure", getPressure())
            .append("rotateSpeed", getRotateSpeed())
            .append("humidity", getHumidity())
            .append("temperature", getTemperature())
            .append("state", getState())
            .append("msgTime", getMsgTime())
            .append("insertTime", getInsertTime())
            .toString();
    }
}
